<template>
  <!-- 创作者 -->
  <div>
    <view class="join_draw">
      <image src="../../static/draw.png" mode="widthFix" class="w100" @click="to_settled" />
    </view>

    <draw-list v-for="item in 4"></draw-list>
  </div>
</template>

<script setup lang="ts">
import DrawList from "@/components/DrawList.vue";
import { onLoad, onPullDownRefresh } from "@dcloudio/uni-app";

onLoad(() => {
  setTimeout(function () {
    console.log("start pulldown");
  }, 1000);
  uni.startPullDownRefresh({
    complete: (res) => {
      console.log(res);
    },
  });
});
onPullDownRefresh(() => {
  console.log("refresh");
  setTimeout(function () {
    uni.stopPullDownRefresh();
  }, 1000);
});

const to_settled= ()=>{
  uni.navigateTo({
    url:"/pagesDraw/DrawSettled/DrawSettled"
  })
}
</script>

<style scoped lang="scss">
.join_draw {
  padding: 24rpx 30rpx;
  box-sizing: border-box;
}
</style>